﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SolutionObjectModel;

namespace ProjectMigrator
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void btnGo_Click(object sender, EventArgs e)
        {
            //var solution = new Solution(@"C:\LevitJames\CreateQuoteEmail\EmailQuote\EmailQuote.sln");

            //Console.WriteLine(solution.Projects.Count);

            var solution = new Solution(@"C:\LevitJames\CreateQuoteEmail\EmailQuote\EmailQuote.sln");
            foreach (var project in solution.Projects.Values)
            {
                Console.WriteLine("{0} - {1}", project.ProjectName, project.ProjectGuid);

                foreach (var configuration in project.Configurations)
                {
                    Console.WriteLine("  {0}: {1} - {2}", configuration.Key, configuration.Value, configuration.Value.OutputPath);
                }

                foreach (var reference in project.References)
                {
                    Console.WriteLine("  {0}", reference);
                    
                }
            }

        }
    }
}
